package com.example.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Button button=(Button)findViewById(R.id.bo_ne);
        EditText tv_number=(EditText)findViewById(R.id.et_number);
        EditText tv_yzm=(EditText)findViewById(R.id.et_yzm);
        EditText tv_password=(EditText)findViewById(R.id.et_password);
        button.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent().setAction("ZhuCheXin")
                 .putExtra("tv_number",tv_number.getText().toString())
                        .putExtra("tv_yzm",tv_yzm.getText().toString())
                        .putExtra("tv_password",tv_password.getText().toString())

                );

            }
        });
    }
}